cmake_minimum_required(VERSION 3.14.1)

if(${CMAKE_VERSION} VERSION_LESS 3.14.1 OR ${CMAKE_VERSION} VERSION_GREATER 3.26)
    message(FATAL_ERROR "CMake version must be between 3.14.1 and 3.26")
endif()

set(Tartget_Name https_client)

set(SRC_DIR 
    ${CMAKE_CURRENT_SOURCE_DIR})

#手动添加源文件，更新进SRCS变量
set(SRCS )

include_directories(${PROJECT_SOURCE_DIR}/include
                    )
                   
#自动搜索源文件，增量更新进SRCS变量
aux_source_directory(${SRC_DIR} SRCS)
                    
link_directories(${PROJECT_SOURCE_DIR}/lib/${Target_Architecture})

add_library(${Tartget_Name} STATIC ${SRCS})

target_include_directories(${Tartget_Name} PUBLIC ${SRC_DIR})

target_sources(${Tartget_Name} PRIVATE ${SRCS})
